package com.b2.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * @TableName course
 */
@TableName(value ="course")
@Data
public class Course implements Serializable {
    /**
     * 课程id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("课程id")
    private Long courseId;

    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 课程封面url
     */
    @ApiModelProperty("课程封面url")
    private String courseCoverUrl;

    /**
     * 课程权限
     */
    @ApiModelProperty("课程权限")
    private String courseAuthority;

    /**
     * 课程分类id
     */
    @ApiModelProperty("课程分类id")
    private Long categoryId;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("课程名")
    private String courseName;

    @ApiModelProperty("课程描述")
    private String description;

    @ApiModelProperty("0 未推荐 1 热门课程 2 轮播图 3 热门课程和轮播图")
    private int courseRecommend;
}
